﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DBList.Entities
{
	public class TiaoMaRecord
	{
		private int _id;
		private Int64 _tiaoma;
		private string _pwd;
		private DateTime _addtime;
		private int _flowctrl;
		private bool _isactived;
		private int _activater;
		private DateTime _acttime;
		private int _tookid;
		private int _applier;
		private DateTime _applytime;
		private int _confirmer;
		private DateTime _cnfmtime;
		private string _consumerinfo;
		private string _wldanhao;
		private int _kind;
		private string _cstercomment;

		public int ID
		{
			set { _id = value; }
			get { return _id; }
		}
		public Int64 TiaoMa
		{
			set { _tiaoma = value; }
			get { return _tiaoma; }
		}
		public string PWD
		{
			set { _pwd = value; }
			get { return _pwd; }
		}
		public DateTime AddDate
		{
			set { _addtime = value; }
			get { return _addtime; }
		}
		public int FlowID
		{
			set { _flowctrl = value; }
			get { return _flowctrl; }
		}
		public bool IsActivated
		{
			set { _isactived = value; }
			get { return _isactived; }
		}
		public int Activater
		{
			set { _activater = value; }
			get { return _activater; }
		}
		public DateTime ActTime
		{
			set { _acttime = value; }
			get { return _acttime; }
		}
		public int TookID
		{
			set { _tookid = value; }
			get { return _tookid; }
		}
		public int Applier
		{
			set { _applier = value; }
			get { return _applier; }
		}
		public DateTime ApplyTime
		{
			set { _applytime = value; }
			get { return _applytime; }
		}
		public int Confirmer
		{
			set { _confirmer = value; }
			get { return _confirmer; }
		}
		public DateTime CnfmTime
		{
			set { _cnfmtime= value; }
			get { return _cnfmtime; }
		}
		public string ConsumerInfo
		{
			set { _consumerinfo = value; }
			get { return _consumerinfo; }
		}
		public string WLDanHao
		{
			set { _wldanhao = value; }
			get { return _wldanhao; }
		}
		public int Kind
		{
			set { _kind = value; }
			get { return _kind; }
		}
		public string CsterComment
		{
			set { _cstercomment = value; }
			get { return _cstercomment; }
		}
	}
	public class MDTJData
	{
		private int _id;
		private string _name;
		private int _num;
		private Decimal _totalmoney;
		private decimal _singlemoney;
		private string _tmcurrency;
		private string _introduction;

		public int ID
		{
			set { _id = value; }
			get { return _id; }
		}
		public string Name
		{
			set { _name = value; }
			get { return _name; }
		}
		public int Number
		{
			set { _num = value; }
			get { return _num; }
		}
		public Decimal	TotalMoney
		{
			set {
				_totalmoney = value;
				_tmcurrency = string.Format("{0:N2}", _totalmoney);
			}
			get { return _totalmoney; }
		}
		public Decimal	SingleMoney
		{
			set { _singlemoney = value; }
			get { return _singlemoney; }
		}
		public string TMCurrency
		{
			get { return _tmcurrency; }
		}
		public string Introduction
		{
			set { _introduction = value; }
			get { return _introduction; }
		}
	}
	public class MDTookDanTJData : MDTJData
	{
		private int _takednum;
		private Decimal _saledmoney;
		private DateTime _tooktime;
		private int _beginint;
		private int _endint;
		private int _taker;
		private string _takername;
		private string _comment;
		private string _smcurrency;

		public int TakedNum
		{
			set { _takednum = value; }
			get { return _takednum; }
		}
		public Decimal SaledMoney
		{
			set {
				_saledmoney = value;
				_smcurrency = string.Format("{0:N2}", _saledmoney);
			}
			get { return _saledmoney; }
		}
		public string SMCurrency
		{
			get { return _smcurrency; }
		}
		public DateTime TookTime
		{
			set { _tooktime = value; }
			get { return _tooktime; }
		}
		public int BeginInt
		{
			set { _beginint = value; }
			get { return _beginint; }
		}
		public int EndInt
		{
			set { _endint = value; }
			get { return _endint; }
		}
		public int Taker
		{
			set { _taker = value; }
			get { return _taker; }
		}
		public string TakerName
		{
			set { _takername = value; }
			get { return _takername; }
		}
		public string Comment
		{
			set { _comment = value; }
			get { return _comment; }
		}
	}
	public class F123HisData
	{
		private int _id;
		private string _kindname;
		private Int64 _barcode;
		private DateTime _applyTime;
		private DateTime _actTime;
		private DateTime _cnfmTime;
		private string _applier;
		private string _conformer;
		private string _address;
		private string _intrudoction;
		private string _flowname;
		private int _applierid;
		private int _cnfmerid;
		private int _flowid;
		private string _customerinfo;
		private string _wldanhao;
		private decimal _singlemoney;
		private string _cstmercomment;

		public int ID
		{
			set { _id = value; }
			get { return _id; }
		}
		public string KindName
		{
			set { _kindname = value; }
			get { return _kindname; }
		}
		public Int64 BarCode
		{
			set { _barcode = value; }
			get { return _barcode; }
		}
		public DateTime ApplyTime
		{
			set { _applyTime = value; }
			get { return _applyTime; }
		}
		public DateTime ActTime
		{
			set { _actTime = value; }
			get { return _actTime; }
		}
		public DateTime CnfmTime
		{
			set { _cnfmTime = value; }
			get { return _cnfmTime; }
		}
		public string ApplierName
		{
			set { _applier = value; }
			get { return _applier; }
		}
		public string ConformerName
		{
			set { _conformer = value; }
			get { return _conformer; }
		}
		public string MDAddress
		{
			set { _address = value; }
			get { return _address; }
		}
		public string MDIntroduction
		{
			set { _intrudoction = value; }
			get { return _intrudoction; }
		}
		public string FlowName
		{
			set { _flowname = value; }
			get { return _flowname; }
		}
		public int ApplierID
		{
			set { _applierid = value; }
			get { return _applierid; }
		}
		public int CnfmerID
		{
			set { _cnfmerid = value; }
			get { return _cnfmerid; }
		}
		public int FlowID
		{
			set { _flowid = value; }
			get { return _flowid; }
		}
		public string CustomerInfo
		{
			set { _customerinfo = value; }
			get { return _customerinfo; }
		}
		public string WLDanHao
		{
			set { _wldanhao = value; }
			get { return _wldanhao; }
		}
		public Decimal SingleMoney
		{
			set { _singlemoney = value; }
			get { return _singlemoney; }
		}
		public string CstmerComment
		{
			set { _cstmercomment = value; }
			get { return _cstmercomment; }
		}
	}
}